package classification.classifier;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;

public class Main
{
    /* IO */
    protected static BufferedReader stdIn  = new BufferedReader(
                                                   new InputStreamReader(
                                                           System.in));
    protected static PrintWriter    stdOut = new PrintWriter(System.out, true);
    protected static PrintWriter    stdErr = new PrintWriter(System.err, true);

    public static void main(String[] args) throws IOException
    {
        Classifier classifier = null;

        stdOut.println("Please input classifier method:");
        stdOut.println("\t[s]: SLVM based method");
        stdOut.println("\t[v]: VSM based method");
        stdOut.println("\t[t]: TED based method");

        char commond = (char) stdIn.read();
        switch (commond)
        {
            case 's':
                classifier = new ClassifierBySLVM();
                break;
            case 'v':
                classifier = new ClassifierByVSM();
                break;
            case 't':
                classifier = new ClassifierByTED();
                break;
        }

        classifier.run();
    }
}
